<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
	src="${ ctx}/scripts/jquery/jquery-1.4.2.js"></script>
<title>分享平台博客系统--登录</title>
<meta name="keywords" content="document share, blog, njupt" />
<meta name="description" content="http://www.njupt.net 分享平台博客来记录我们的心声" />
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE3 {
	font-size: 12px;
	color: #FFFFFF;
}

.login_button {
	/** background-image: url("../img/login_button.gif");*/
	border: 0 none;
	color: #A20000;
	height: 24px;
	width: 85px;
}
</style>
<script type="text/javascript">
	function defaultSubmit(){
		var username = $("#IDToken1").val();
		var password = $("#IDToken2").val();
		if(username==null||username.length==0){
			alert("用户名输入为空");
			$("#IDToken1").focus();
			return false;
		}
		if(password==null||password.length==0){
			alert("密码输入为空");
			$("#IDToken2").focus();
			return false;
		}
	}
</script>
</head>
<body>
	<table width="1000" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td>
				<table width="1000" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="512"><img src="${ctx}/img/wiscom_1.jpg"
							width="512" height="619" />
						</td>
						<td valign="top"><table width="100%" border="0"
								cellspacing="0" cellpadding="0">
								<tr>
									<td height="384" background="${ctx}/img/wiscom_2.jpg">
										<form name="frm1" action="${ctx }/user/login.action"
											method="post" onSubmit="return defaultSubmit();">
											<table width="100%" height="207" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="25%" height="99">&nbsp;</td>
													<td width="12%">&nbsp;</td>
													<td colspan="2">&nbsp;</td>
													<td width="18%">&nbsp;</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
													<td align="right" class="STYLE3">用户名：</td>
													<td colspan="2"><label> <INPUT size="23"
															type="text" name="username" id="IDToken1" value="">
													</label>
													</td>
													<td>&nbsp;</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
													<td align="right" class="STYLE3">密 码：</td>
													<td colspan="2"><label> <INPUT size="23"
															type="password" name="password" id="IDToken2" value="">
													</label>
													</td>
													<td>&nbsp;</td>
												</tr>
												<tr>
													<td height="21">&nbsp;</td>
													<td>&nbsp;</td>
													<td colspan="2">&nbsp;</td>
													<td>&nbsp;</td>
												</tr>
												<tr
													style="border: 0; z-index: 1000; position: fixed; padding-top: 6px">
													<td style="border: 0"><c:if test="${msg != null }">
		 												&nbsp;<font color="red">${msg}</font>
															<br />
														</c:if></td>
												</tr>
											</table>
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="27%">&nbsp;</td>
													<td width="73%"><input type="submit"
														class="login_button" value="确定" /> <input type="reset"
														class="login_button" value="重置" /> <input type="button"
														class="login_button" value="注册"
														onclick="window.location='${ctx}/register.jsp'" /></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
								<tr>
									<td height="235" valign="top"
										background="${ctx}/img/wiscom_3.jpg">
										<table width="98%" height="220" border="0" cellpadding="0"
											cellspacing="0">
											<tr>
												<td width="3%" height="220">&nbsp;</td>
												<td class="STYLE3"></td>
												<td width="1%">&nbsp;</td>
											</tr>
										</table>
									</td>
								</tr>

							</table>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>